from typing import Optional

from base.base_schemas import BaseOutSchema, BaseEditSchema


class FileServerOutSchema(BaseOutSchema):
    filename: str
    filesize: Optional[int]
    file_url: str
    file_hash: Optional[str] = None


class FileServerEditSchema(BaseEditSchema):
    filename: str
    filesize: Optional[int]
    file_url: str
    file_hash: Optional[str]
